<?php
	if(is_array($_POST['product_id'])) {
		$product_id = $_POST['product_id'];
		$sql = "UPDATE `tbl_product` SET `status` = '2' WHERE `product_id` IN (". implode (',',$product_id) .")";
	} else { 
		$product_id = $params[0]; 
		$sql = "UPDATE `tbl_product` SET `status` = '2' WHERE `product_id` = '$product_id' LIMIT 1"; 
	}
	mysql_query($sql);
	exit;
?>